package com.dragonsoftbravo.sqlbuilder.sql.delete;

import com.dragonsoftbravo.sqlbuilder.SqlContext;
import com.dragonsoftbravo.sqlbuilder.dao.SqlBuilder;

public class SqlDelete implements Delete{
	StringBuilder sqlBuilder = new StringBuilder();
	SqlBuilder dao;
	public SqlDelete(SqlBuilder dao) {
		this.dao = dao;
	}

	@Override
	public DeleteConst delete() {
		sqlBuilder.append("DELETE FROM " + SqlContext.getTable(dao.getTable()));
		return new SqlDeleteConst(sqlBuilder);
	}

}
